﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Charley.WCF.Demo.MoneyMangement.Contract;

namespace Charley.WCF.Demo.MoneyMangement.Service
{
    public class MoneyService : IMoneyService
    {
        //模拟数据库
        private static decimal _totalMoney = 0;

        public decimal Deposit(decimal money)
        {
            _totalMoney += money;
            return _totalMoney;
        }

        public decimal GetTotal()
        {
             return _totalMoney;
        }
    }
}
